@extends('layout.master')

@section('title')
   Product Page
@stop

@section('username')
   {{ Auth::user()->userName }} 
@stop

@section('header')
    @parent
@stop

@section('side-menu')
    @parent
@stop

@section('content')
    <h3> {{ $item->productName }}  </h3> <hr />

            <div class="thumbnail span4" style="margin-right: 20px;">
                <img alt="album.Title" src="/img/products/{{$item->image_url}}" />
            </div>
            
            <div class="span4">
                <form action="/cart/add/{{$item->id}}" method="get">
                    <h5 style="text-decoration: line-through; color: lightgray"> <em> Was: </em> R {{ $item->retailPrice + ($item->retailPrice * 0.15) }} </h5>
                    <h5 style="color:orange"> <em> Now: </em> R {{ $item->retailPrice }} </h5>
                @if($item->quantity > 0)
                    <h5 style="color: green"> <em> Status </em>: In Stock </h5>
                    <button type="submit" class="btn btn-success"> <i class="icon-shopping-cart"></i> Add To Basket </button>
                @else
                     <h5 style="color: red"> Status: Out of stock </h5>
                @endif
                <form action="/cart/add/{{$item->id}}" method="post">
            </div>            
@stop
